<assign name="page_title" value="私信" />
<assign name="current_item" value="message" />
<include file="Public:header" />
<div id="main">
    <div id="main-header" class="grid page">
        <h2>爱咕噜</h2>
        <h1>修改密码</h1>
    </div>
    <div id="sub-main-header"></div>
    <div id="main-inner" class="message_show page">
        <div class="grid">
            <a href="__GROUP__/message" class="btn btn_blue btn_medium left">
                <span>返回收信箱</span>
            </a>
            <a href="__URL__/delete/{{$message.message_id}}" class="btn btn_silver btn_medium right">
                <span>删除对话</span></a>
        </div>
        <div class="tweet page grid">
            <h3>
                <eq name="Think.session.user_id" value="$message['user_id']|intval">
                在这条微博里给你发私信
                <else/>
                你给这条微博的主人发去私信
                </eq>
            </h3>
            <notempty name="message['tweets']">
            <div class="col2_18 avatar">
                <div class="cate_image cate_image_{{$message['tweets']["cate_id"]}}">
                    <a href="__ROOT__/{{$school.school_abbr}}/cate/{{$message['tweets']["cate_id"]}}"><php>echo C("TWEETS_CATEGORY.".$message['tweets']["cate_id"])</php></a>
                </div>
            </div>
            <div class="col16_18 last">
                <h6>
                    <a  href="__ROOT__/{{$school.school_abbr}}/tweets/{{$message['tweets']['tweets_id']}}">
                        {{$message['tweets']['title']}}
                    </a>
                </h6>
                <p>{{$message['tweets'].content}}</p>
                <div class="small gray grid">
                    {{$message['tweets'].create_time|friendly_date=###,normal}}
                    <notempty name="message['tweets']['location_id']">
                        <a href="{{$message['tweets'].location_id}}" class="gray">{{$message['tweets'].location_name}}</a>
                    </notempty>
                </div>
            </div>
            <else/>
            该主题已被删除！
            </notempty>
        </div>
        <div class="grid message_thread they-said">
            <hr>
            <div class="col14_18">
                <strong><eq name="message.from_id" value="$Think.Session.user_id">你发的消息<else/>给你的消息</eq></strong>
                <p>{{$message.content}}</p>
            </div>
            <div class="col4_18 last small gray text_right">
                {{$message.create_time|friendly_date=###,normal}}    
            </div>
        </div>
        <volist name="message.reply" id="reply">
            <div class="grid message_thread they-said">
                <hr>
                <div class="col14_18">
                    <strong><eq name="reply.user_id" value="$Think.Session.user_id">你发的消息<else/>给你的消息</eq></strong>
                    <p>{{$reply.content}}</p>
                </div>
                <div class="col4_18 last small gray text_right">
                    {{$reply.create_time|friendly_date=###,normal}}
                </div>
            </div>
        </volist>
        <div class="grid message_thread">
            <hr>
            <form action="__URL__/reply" method="post">
                <input type="hidden" name="message_id" value="{{$message.message_id}}" />
                <textarea class="textarea" placeholder="回应..." name="content" style="width:100%;"></textarea>
                <button type="submit" class="btn btn_silver fbold"><span>回应</span></button>
                <p class="small gray">你的消息是匿名的</p>
            </form>
        </div>
    </div>
</div>
<include file="Public:footer" />